package org.luxor.common.netty.protocol.message;


import org.luxor.common.netty.protocol.NettyFixedHeader;
import org.luxor.common.netty.protocol.NettyMessageType;
import org.luxor.common.netty.protocol.NettyQoS;

/**
 * Netty Ping Message
 *
 * @author Mr.yan @date 2024/1/31
 */
public class NettyPingMessage extends NettyMessage {

    public NettyPingMessage(NettyFixedHeader fixedHeader) {
        super(fixedHeader, null, null);
    }

    public static NettyPingMessage from() {
        NettyFixedHeader fixedHeader = new NettyFixedHeader(NettyMessageType.PING, false, NettyQoS.AT_LEAST_ONCE);
        return new NettyPingMessage(fixedHeader);
    }
}
